
package es.udc.emarketapp.emarket.model.admin.dao;

import es.udc.emarketapp.emarket.model.admin.vo.AdminVO;
import es.udc.fbellas.j2ee.util.exceptions.InstanceNotFoundException;
import es.udc.fbellas.j2ee.util.exceptions.InternalErrorException;
import java.sql.Connection;


public interface SQLAdminDAO {
    
    public AdminVO create(Connection connection, AdminVO adminVO)
    	throws InternalErrorException;
    
    public boolean exists(Connection connection, String idComprador)
    	throws InternalErrorException;
    
    public boolean exists(Connection connection, String idComprador,
	    String pass) throws InternalErrorException;

    public AdminVO findById(Connection connection, String idAdmin)
    	throws InternalErrorException, InstanceNotFoundException;
    
    public AdminVO findById(Connection connection, String idAdmin,
	    String pass) throws InternalErrorException,
            InstanceNotFoundException;

}
